const { searchMenu } = require('../service/topMenu')
const { success,error } = require('../utils/response')
class topMenu {
  async searchTopMenu(ctx,next){
    const params = ctx.request.body
    try{
      const res = await searchMenu()
      if(res){
        success(ctx,res)
      }
    } catch (err){
      return error(ctx,err)
    }
  }
}

module.exports = new topMenu